package com.itheima.sh.a_dobug_01;

import java.util.Scanner;

public class ArrayTest01_2 {
    public static void main(String[] args) {
        double [] scores=new double[6];
        Scanner sc=new Scanner(System.in);
        for (int i = 0; i < scores.length; i++) {
            System.out.println("请第"+(i+1)+"位评委打出的分数位：");
            double score= sc.nextDouble();
            scores[i]=score;
        }
        double sum=0;
        for (int i = 0; i < scores.length; i++) {
            sum=sum+scores[i];
        }
        double avg=sum/scores.length;
        System.out.println("该选手的平均分为："+avg);
    }


}
